<!--<include file="public+header">-->

<!--{:Core_Extend::editorInclude()}-->
<!--{:Core_Extend::emotion()}-->

<!--{script}-->
$(function(){
	editor=loadEditor('homefresh_message');
	$(".face-icon").jqfaceedit({txtAreaObj:editor,containerObj:$('#emotion_parentcontainer'),top:25,left:-27});
});

currentBeforeFun=function(){
	$('#homefresh_message').val(editor.html());
};

function insertHomefreshthumb(nAttachmentid){
	insertAttachmentthumb('homefresh_thumb',nAttachmentid);
}

checkForm(updateForm);
<!--{/script}-->

	<section class="secondary_bar">
		<div class="breadcrumbs_container">
			<article class="breadcrumbs"><a href="<!--{:Q::U('public/fmain')}-->"><!--<lang package='Template'>-->主页<!--</lang>--></a> <div class="breadcrumb_divider"></div> <a class="current"><!--<lang package='__APPHOME_COMMON_LANG__@Template'>-->编辑新鲜事<!--</lang>--></a> <div class="breadcrumb_divider"></div> <a href="javascript:void(0);" onclick="adminctrlmenuAdd('<!--{:__SELF__}-->','<!--<lang package='__APPHOME_COMMON_LANG__@Template'>-->编辑新鲜事<!--</lang>-->')" title="<!--<lang package='Template'>-->添加到快捷导航<!--</lang>-->">[+]</a></article>
		</div>
	</section>

	<section id="main" class="column">
		<article class="module width_full">
			<header><h3><!--<lang package='Template'>-->操作提示<!--</lang>--></h3></header>
				<div class="module_content">
					<ul>
						<li><!--<lang package='__APPHOME_COMMON_LANG__@Template'>-->这里可以对新鲜事进行编辑<!--</lang>--></li>
					</ul>
				</div>
		</article>

		<article class="module width_full">
			<header><h3 class="tabs_involved"><!--<lang package='__APPHOME_COMMON_LANG__@Template'>-->编辑新鲜事<!--</lang>--></h3>
				<ul class="tabs">
					<li><a href="<!--{:Admin_Extend::base(array('controller'=>'homefreshcomment','fid'=>$oValue['homefresh_id']))}-->"><!--<lang package='__APPHOME_COMMON_LANG__@Template'>-->新鲜事评论<!--</lang>--></a></li>
					<li class="active"><a href="<!--{:Admin_Extend::index(array('controller'=>'homefresh'))}-->"><!--<lang package='__APPHOME_COMMON_LANG__@Template'>-->新鲜事列表<!--</lang>--></a></li>
					<li><a href="<!--{:Admin_Extend::base()}-->"><!--<lang package='Template'>-->应用入口<!--</lang>--></a></li>
				</ul>
			</header>
			<form action="" method="post" id="homefreshAdd" class="validate">
				<div class="module_content">
					<fieldset>
						<label for="homefresh_title"><!--<lang package='__APPHOME_COMMON_LANG__@Template'>-->新鲜事标题<!--</lang>--></label>
						<input type="text" name="homefresh_title" id="homefresh_title" size="40" value="<!--{$oValue:homefresh_title}-->" class="{required:true}"/>
						<div class="description input_tips"><!--<lang package='__APPHOME_COMMON_LANG__@Template'>-->新鲜事标题可有可无，最大字符为300<!--</lang>--></div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="homefreshcategory_id"><!--<lang package='__APPHOME_COMMON_LANG__@Template'>-->文章分类<!--</lang>--></label>
						<select name="homefreshcategory_id" id="homefreshcategory_id">
							<option value="0">- <!--<lang package='Template'>-->选择分类<!--</lang>--> -</option>
							<!--<foreach for=arrCategorys value=arrCategory>-->
							<option value="<!--{$arrCategory['homefreshcategory_id']}-->" <!--{if $arrCategory['homefreshcategory_id']==$oValue['homefreshcategory_id']}-->selected<!--{/if}-->><!--{$arrCategory['homefreshcategory_name']}--></option>
							<!--</foreach>-->
						</select>
					</fieldset>
					<fieldset>
						<label for="homefresh_message"><!--<lang package='__APPHOME_COMMON_LANG__@Template'>-->新鲜事内容<!--</lang>--></label>
						<div id="homefreshmessage-media-box" class="common-media-box">
							<a href="javascript:void(0);" class="face-icon icon_add_face" ><!--<lang package='Template'>-->表情<!--</lang>--></a> 
							<a href="javascript:void(0);" onclick="globalAddattachment('insertAttachment_');" class="icon_add_img"><!--<lang package='Template'>-->媒体<!--</lang>--></a>
							<a href="javascript:void(0);" onclick="addVideo('insertVideo_');" class="icon_add_video" ><!--<lang package='Template'>-->视频<!--</lang>--></a>
							<a href="javascript:void(0);" onclick="addMusic('insertMusic_');" class="icon_add_music"><!--<lang package='Template'>-->音乐<!--</lang>--></a>
						</div>
						<p id="emotion_parentcontainer">
							<textarea name="homefresh_message" id="homefresh_message" style="width:750px;height:<!--{:Core_Extend::getEditor()}-->px;visibility:hidden;"><!--{$oValue:homefresh_message|htmlspecialchars}--></textarea>
						</p>
						<div class="description"><!--<lang package='__APPHOME_COMMON_LANG__@Template'>-->新鲜事内容信息，可以插入附件等等<!--</lang>-->&nbsp;<a href="<!--{:Core_Extend::windsforceOuter('app=home&c=misc&a=ubb')}-->" target="_blank"><!--<lang package='__COMMON_LANG__@Common'>-->查看内容支持的UBB代码<!--</lang>--></a></div>
					</fieldset>
					<fieldset>
						<label for="homefresh_thumb"><!--<lang package='__APPHOME_COMMON_LANG__@Template'>-->缩略图<!--</lang>-->&nbsp;<span class="red" style="cursor:pointer;" onclick="$('#homefresh_thumb').val('');">x</span></label>
						<input style="float:left;width:400px;" type="text" id="homefresh_thumb" name="homefresh_thumb" value="<!--{if isset($oValue)}--><!--{$oValue['homefresh_thumb']}--><!--{/if}-->" readonly/>&nbsp;
						<a href="javascript:void(0);" onclick="globalAddattachment('insertHomefreshthumb',1,1);"><!--<lang package='__COMMON_LANG__@Common'>-->媒体<!--</lang>--></a>
						<div class="description input_tips clear"><!--<lang package='__APPHOME_COMMON_LANG__@Template'>-->从附件管理器中选择<!--</lang>--></div>
						<p class="input_errortips"></p>
					</fieldset>
					<fieldset>
						<label for="homefresh_status"><!--<lang package='Template'>-->状态<!--</lang>--></label>
						<select class="field" name="homefresh_status">
							<option value="1" <!--<if condition="!isset( $oValue ) || ( isset( $oValue ) && $oValue:homefresh_status==1)">-->selected<!--</if>-->><!--<lang package='Template'>-->启用<!--</lang>--></option>
							<option value="0" <!--<if condition="isset( $oValue ) && $oValue:homefresh_status==0">-->selected<!--</if>--> ><!--<lang package='Template'>-->禁用<!--</lang>--></option>
							<option value="9" <!--<if condition="isset( $oValue ) && $oValue:homefresh_status==9">-->selected<!--</if>-->><!--<lang package='Template'>-->回收站<!--</lang>--></option>
						</select>
					</fieldset>
				</div>
				<footer>
					<div class="submit_link">
						<input type="hidden" name="ajax" value="1">
						<input type="hidden" name="value" id="value" value="<!--{$_GET['value']}-->"/>
						<input type="submit" id="submit_button" value="<!--<lang package='Template'>-->更新<!--</lang>-->" class="alt_btn">
						&nbsp;<input type="reset" value="<!--<lang package='Template'>-->重置<!--</lang>-->">
					</div>
				</footer>
			</form>
		</article>

<!--<include file="public+footer">-->